import 'osc_blog.dart';
import 'osc_notice.dart';

class OscBlogListEntity {
	List<OscBlog> blogList;
	OscNotice notice;

	OscBlogListEntity({this.blogList, this.notice});

	OscBlogListEntity.fromJson(Map<String, dynamic> json) {
		if (json['bloglist'] != null) {
			blogList = new List<OscBlog>();(json['bloglist'] as List).forEach((v) { blogList.add(new OscBlog.fromJson(v)); });
		}
		notice = json['notice'] != null ? new OscNotice.fromJson(json['notice']) : null;
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.blogList != null) {
      data['bloglist'] =  this.blogList.map((v) => v.toJson()).toList();
    }
		if (this.notice != null) {
      data['notice'] = this.notice.toJson();
    }
		return data;
	}
}
